<template>
    <div id="s1">
        我是子组件1--{{counterStore.counter}}<br />
        <button @click="counterStore.addCount">+</button>
    </div>
</template>
<script setup>
 import {useCounterStore} from "@/store/counter"
const counterStore = useCounterStore()
</script>

